DX11 GET MESH VERTEXDATA SEMANTIC OFFSET

Retrieves the offset in bytes to the vertex element with the given semantic name / index combination.
Calling this function is equivalent to calling DX11 GET VERTEX LAYOUT ELEMENT OFFSET for the vertex layout used by the mesh.

  Syntax
Return Dword = DX11 GET MESH VERTEXDATA SEMANTIC OFFSET(mesh, semanticName, [semanticId])
  Parameters
mesh
Dword
The mesh to get the offset to the specified semantic for.
semanticName
String
The name of the semantic to get the offset of for the specified mesh.
[Optional] semanticId
Dword
The id of the semantic name if there are several vertex elements sharing the same semantic name (TEXCOORD0, TEXCOORD1, etc.). Defaults to 0.

  Returns

The offset to the given semantic name / index combination, or DX11_NO_SUCH_SEMANTIC (0xffffffff) if there is no such semantic in the vertex format of the given mesh.

  See also

MESH Functions Menu
DX11 Function Categories